<div class="main_right_between">

	<?php if(!empty($news) && !empty($pages)):?>

    <div class="news_content">
    	<?php if(is_file("admin/".$news['news_image_thumb'])):?>
        	<img class="img_des" src="admin/<?= $news['news_image_thumb']?>" style="border: 2px solid #fff" width="150px" height="150px" />
        <?php else:?>
        	<img class="img_des" src="admin/assets/uploads/images/news/imgerr.jpg" style="border: 2px solid #fff" width="150px" height="150px" />
        <?php endif;?>
        <p class="news_title">

        	<?= $this->_helper->limited_word(ucfirst($news['news_title']),20,'')?>

        </p>

  		<?php if($news['news_updated'] != ''):
				$news_updated = strtotime($news['news_updated']);
                $news_updated = date('d-m-Y', $news_updated);
			  else:
				$news_updated = strtotime($news['news_created']);
                $news_updated = date('d-m-Y', $news_updated);
			  endif;
		?>
           	<ul class="meta">
	            <li>Ngày đăng: <?= $news_updated?></li>
	            <li>Chuyên mục: <a href="<?=_BASE_URL?>index.php?module=news&slug=<?= $pages['slug']?>" style="color: #0CADAD;"><?= $pages['pages_name'] ?></a></li>
	            <li>Lượt xem: <?= $news['news_counter']?></li>
	        </ul>

        <div class="main_news" style="color: #ccc!important;">
            <?= $news['news_content']?>
        </div>
    </div><!--End of .news_content -->

    <div style="clear: both;"></div>

    <p class="news_title" style="margin-left: 20px; margin-top:20px;">Các tin tức khác</p>

    <ul class="other">
    	<?php
            if(!empty($newslikes))
            {
    		foreach($newslikes as $newslike):
    	?>
       <li>
        	<a href="<?=_BASE_URL?>index.php?module=news&action=readnews&slug=<?=$newslike['slug']?>" class="text_h1">
        		  <?php
        		  		echo ucfirst($newslike['news_title']);

                        /*
        		  		if($count == 3)
							break;
                        */
        		  ?>
        	</a>
        </li>


        <?php
        	endforeach;
            }
        ?>
    </ul><!-- End of .other-->

	<?php endif;?>

    <div class="back"><a href="<?= _BASE_URL?>" title="Quay lại trang chủ">Back</a></div>
</div><!--End of .main_right_between -->

<script type="text/javascript">

    jQuery(".main_news").children().css("color", "#ccc");

</script>